fix(home): link into apps by package-id route segment (ADR-0048)#1717
Merged
Conversation
The console home page still built /apps/<app.name> for the app grid (HomePage) and the favorite href (AppCard), while the nav (sidebar/switcher/command-palette) emits /apps/<packageId> via appRouteSegment since #1696. So opening an app from home produced a name-form URL (/apps/studio) instead of the canonical /apps/com.objectstack.studio. Both now use appRouteSegment(app). Verified in the browser (dev console against a live backend): clicking the Studio card → /apps/com.objectstack.studio; HotCRM card → /apps/app.objectstack.hotcrm/dashboard/executive_dashboard and the app renders. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
xuyushun441-sys
added a commit
that referenced
this pull request
Jun 14, 2026
… (ADR-0048) (#1719) Follow-up to the home-page fix (#1717): - AppManagementPage "Open app" button opens /apps/<packageId> (app._packageId ?? app.name), not /apps/<name>. - AppContent current-app sub-routes/redirects (metadata/package redirect, record-form baseUrl) build against the URL's own appName segment instead of activeApp.name, so a /apps/<packageId>/ URL keeps its segment. requestedAppMissing uses matchAppBySegment so a package-id URL isn't flagged as a missing app. Verified in the browser: System > Apps > Open Showcase > /apps/com.example.showcase/showcase_project (app loads). Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Opening an app from the console home page produced a name-form URL (e.g.
/apps/studio) instead of the canonical package-id form (/apps/com.objectstack.studio) that the rest of the nav uses.The ADR-0048 emission fix (#1696) updated the sidebar / app-switcher / command-palette to link via
appRouteSegment(app)(=_packageId ?? name), but missed the home surface:HomePage.tsxapp grid:navigate(\/apps/${app.name}`)`AppCard.tsxfavorite href:href: \/apps/${app.name}``Fix
Both now use
appRouteSegment(app).Verification
Browser-tested against a live backend (dev console with live source; the
/_console/bundle on a deployed backend is pinned and picks this up on its next@objectstack/consolebump):/apps/com.objectstack.studio✅ (was/apps/studio)/apps/app.objectstack.hotcrm/dashboard/executive_dashboard✅, app renders (Executive dashboard, full nav). No console errors.(App names ≠ package ids, confirmed via
/meta/app:studio→com.objectstack.studio,crm_enterprise→app.objectstack.hotcrm,showcase_app→com.example.showcase.)🤖 Generated with Claude Code